package com.ruoyi.costumeShop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.costumeShop.mapper.CostumeSaleOrderMapper;
import com.ruoyi.costumeShop.domain.CostumeSaleOrder;
import com.ruoyi.costumeShop.service.ICostumeSaleOrderService;

/**
 * 订单信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-10
 */
@Service
public class CostumeSaleOrderServiceImpl implements ICostumeSaleOrderService 
{
    @Autowired
    private CostumeSaleOrderMapper costumeSaleOrderMapper;

    /**
     * 查询订单信息
     * 
     * @param saleOrderId 订单信息主键
     * @return 订单信息
     */
    @Override
    public CostumeSaleOrder selectCostumeSaleOrderBySaleOrderId(Long saleOrderId)
    {
        return costumeSaleOrderMapper.selectCostumeSaleOrderBySaleOrderId(saleOrderId);
    }

    /**
     * 查询订单信息列表
     * 
     * @param costumeSaleOrder 订单信息
     * @return 订单信息
     */
    @Override
    public List<CostumeSaleOrder> selectCostumeSaleOrderList(CostumeSaleOrder costumeSaleOrder)
    {
        return costumeSaleOrderMapper.selectCostumeSaleOrderList(costumeSaleOrder);
    }

    /**
     * 新增订单信息
     * 
     * @param costumeSaleOrder 订单信息
     * @return 结果
     */
    @Override
    public int insertCostumeSaleOrder(CostumeSaleOrder costumeSaleOrder)
    {
        return costumeSaleOrderMapper.insertCostumeSaleOrder(costumeSaleOrder);
    }

    /**
     * 修改订单信息
     * 
     * @param costumeSaleOrder 订单信息
     * @return 结果
     */
    @Override
    public int updateCostumeSaleOrder(CostumeSaleOrder costumeSaleOrder)
    {
        return costumeSaleOrderMapper.updateCostumeSaleOrder(costumeSaleOrder);
    }

    /**
     * 批量删除订单信息
     * 
     * @param saleOrderIds 需要删除的订单信息主键
     * @return 结果
     */
    @Override
    public int deleteCostumeSaleOrderBySaleOrderIds(Long[] saleOrderIds)
    {
        return costumeSaleOrderMapper.deleteCostumeSaleOrderBySaleOrderIds(saleOrderIds);
    }

    /**
     * 删除订单信息信息
     * 
     * @param saleOrderId 订单信息主键
     * @return 结果
     */
    @Override
    public int deleteCostumeSaleOrderBySaleOrderId(Long saleOrderId)
    {
        return costumeSaleOrderMapper.deleteCostumeSaleOrderBySaleOrderId(saleOrderId);
    }
}
